package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 */
@TableName("z_goods_specification")
@ApiModel(value="Z_goods_specification对象", description="商品对应规格表值表")
public class goodsSpecification implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private Integer goods_id;

    @ApiModelProperty(value = "规格描述")
    private String value;

    @ApiModelProperty(value = "图片")
    private String pic_url;

    @ApiModelProperty(value = "规格对应价钱")
    private BigDecimal price;

    @ApiModelProperty(value = "是否编辑状态")
    private String status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getPic_url() {
        return pic_url;
    }

    public void setPic_url(String pic_url) {
        this.pic_url = pic_url;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Z_goods_specification{" +
        "id=" + id +
        ", goods_id=" + goods_id +
        ", value=" + value +
        ", pic_url=" + pic_url +
        ", price=" + price +
        ", status=" + status +
        "}";
    }
}
